package com.zxmzy.scaffold.core.net.error

/**
 * @author zhangxiaoming
 * @date 2023/7/27
 * @description 结果异常类
 * 服务器非200状态，对应的异常
 */
class ApiException : Exception {
    var errCode: Int
    var errMsg: String

    constructor(error: ERROR, e: Throwable? = null) : super(e) {
        errCode = error.code
        errMsg = error.errMsg
    }

    constructor(code: Int, msg: String, e: Throwable? = null) : super(e) {
        this.errCode = code
        this.errMsg = msg
    }
}